<?php 
header("content-type:text/html;charset=utf-8");
session_start();
	if (isset($_SESSION['u_name'])){
		
	

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href ="css/index.css" rel="Stylesheet" type="text/css"  />
<title>首页</title>
<script type="text/javascript">
function test(){
var aa=document.documentElement.clientHeight;
document.getElementById("line_2").style.height=(aa-600)+"px";
}
</script>
</head>

<body onload="test()">
<div id="main">
	<div id="top">
    	<div id="nav">
        	<ul>
            	<li><a href="index.php">首页</a></li>
                <li>|</li>
                <li><a href="./email/email.php">邮箱</a></li>
                <li>|</li>
                <li><a href="Blog/blog.php">博客</a></li>
                <li>|</li>
                <li><a href="./chat/chat.php">聊天室</a></li>
            </ul>
        </div>
        <div id="nav_1">
        	<img src="images/tu2.png" />
        </div>
        <div id="black">
    	</div>
    </div>
    <div class="clear"></div>
    <div id="mid">
    	<div id="news">
       	  <div id="news_title">
            	<span><strong>博客更新</strong></span><div class="clear"></div>
                <hr />
            </div>
            <div id="news_box">
            	<span class="news_update"><a href="#" class="normal">XXX 今天更新了<strong> 1 </strong>篇文章</a></span>
                <span class="news_update"><a href="#" class="normal">XXX 今天更新了<strong> 1 </strong>篇文章</a></span>
                <span class="news_update"><a href="#" class="normal">XXX 今天更新了<strong> 1 </strong>篇文章</a></span>
                <span class="news_update"><a href="#" class="normal">XXX 今天更新了<strong> 1 </strong>篇文章</a></span>
                <div class="clear"></div>
            </div>
        </div>
        <div id="search">
        	<form>
            	<table>
                	<tr>
                    	<td><input type="text" id="search_keywords" /></td>
                        <td>
                        	<select id="search_range">
                            	<option value="type">类型</option>
                                <option value="author">作者</option>
                                <option value="content">内容</option>
                                <option value="date">时间</option>
                            </select>
                        </td>
                        <td><input type="submit" value="搜索" /></td>
                    </tr>
                </table>
            </form>
        </div>
        <div id="remark">
        	<p>Where there is a will</p> 
			<p>there is a way</p>
        </div>
        <div id="email">
        	<a href="./email/email.php"><img src="images/tu3.png" /></a>
        	<div id="email_no_read"></div>
        </div>
        <div class="clear"></div>
    </div>
    <div id="line_2"></div>
    <div id="foot">
    	<div id="black">
    	</div>
    	<div id="down">这是我们团队的交流平台，这里有着我们想要的东西
        </div> 
        <span>版权所有 非请勿进</span>
    </div>

</div>
</body>
</html>
<?php 
	}
	else echo "不合法，请重新登陆";
?>
